<?php
class Acidente extends AppModel {

	var $name = 'Acidente';
	var $validate = array(
		'funcionario_id' => array('notempty'),
		'descricao' => array('notempty'),
		'dataAcidente' => array('date')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Funcionario' => array(
			'className' => 'Funcionario',
			'foreignKey' => 'funcionario_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>